<?php

/*  lamp-shade_0.1
 *  License: GNU GPL v3
 *  File: ./modules/html/link.php
 *  Authors:    Werner Roets
 *              Frank Adrian
 *  Description:
 *  Use this class to create links.
 */

require_once("html_component.php");

class Link extends Html_component
{
    public $Link_to;
    public $Text;
    public $Mouse_over = "";
    
    public function __construct($link_to,$text)
    {
		$this->Link_to = $link_to;
		$this->Text = $text;
    }
    
    public function GenerateHtml()
    {			
    	$this->Html =  "<a title=\"$this->Mouse_over\"href=\"$this->Link_to\">$this->Text</a>";
    }
}

?>
